package domain;

import java.sql.Date;

public class TaskAssignement {

	private Long id;
	private Date startDate;
	private Date endDate;
	private Task task;
	private Person person;
	public TaskAssignement() {
		super();
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Date getStartDate() {
		return startDate;
	}
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	public Task getTask() {
		return task;
	}
	public void setTask(Task task) {
		this.task = task;
	}
	public Person getPerson() {
		return person;
	}
	public void setPerson(Person person) {
		this.person = person;
	}
	@Override
	public String toString() {
		return getPerson().toString() + " : " + getStartDate().toString() + " - " + getEndDate().toString();
	}			
}
